<template>
  <div class="BpmDetailButtons">
      <rx-button-list :localButtons="localButtons" @change="btnClick"></rx-button-list>
  </div>
</template>

<script>
import detailButton from "./js/detailButton.js";
import RxButtonList from "@/components/RxButtonList"
export default {
  name: "BpmDetailButtons",
  props:["curVm"],
  mixins:[detailButton],
    components: {
        RxButtonList
    },
  computed:{
    buttonCount(){
      return this.curVm.processConfig.instMaxButton || 4;
    }
  },
  methods:{
    btnClick(btn){
      this.curVm.handMethod(btn)
    },
  }
}
</script>

<style scoped>
.BpmDetailButtons{
    display: flex;
    width: 100%;
}
</style>
